<h1>Listing bookmarks</h1>

<table>
  <tr>
    <th>Description</th>
    <th>Page</th>
  </tr>

<% for bookmark in @bookmarks %>
  <tr>
    <td><%=h bookmark.description %></td>
    <td><%=h bookmark.page_number %></td>
    <td><%= link_to 'Show', book_bookmark_path(bookmark.book, bookmark) %></td>
    <td><%= link_to 'Edit', edit_book_bookmark_path(bookmark.book, bookmark) %></td>
    <td><%= link_to 'Destroy', book_bookmark_path(bookmark.book, bookmark), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New bookmark', new_book_bookmark_path(params[:book_id]) %>
